from django.core.handlers.wsgi import WSGIRequest
from database import models


def dashboard(request: WSGIRequest):
    logs = models.LogTgUser.objects.all().order_by('-date_create')[:15]
    return {'user_logs': logs}
